import { TweenPlugin } from "./TweenPlugin";
import { TweenLite } from "../TweenLite";
type int = number;
//class FramePlugin
    
    export  class FramePlugin extends TweenPlugin
    {
        constructor()
        {
            
            super();this.propName = "frame";
            this.overwriteProps = ["frame", "frameLabel"];
            this.round = true;
            return;
        }

        public /* override */ onInitTween(arg1: Object, arg2, arg3: TweenLite): Boolean
        {
            if (!(arg1 is flash.display.MovieClip) || isNaN(arg2)) 
            {
                return false;
            }
            this._target = arg1 as Object /* flash.display.MovieClip */;
            this.frame = this._target.currentFrame;
            addTween(this, "frame", this.frame, arg2, "frame");
            return true;
        }

        public /* override */ set changeFactor(arg1: number)
        {
            updateTweens(arg1);
            this._target.gotoAndStop(this.frame);
            return;
        }

        public static /* const */API: number=1;

        public /* var */frame: int;

        protected /* var */_target: Object /* flash.display.MovieClip */;
    }
